import upload from '@/utils/upload'
import request from '@/utils/request'

// 获取购物车
export function getShoppingCart() {
  return request({
    url: '/system/shoppingCart/list',
    method: 'get'
  })
}

//修改购物车
export function updateShoppingCart(data) {
  return request({
    url: '/system/shoppingCart',
	data: data,
    method: 'put'
  })
}

//删除购物车
export function submitPay(data) {
  return request({
    url: '/system/shoppingCart',
	data: data,
    method: 'delete'
  })
}
